package org.geekbang.projects.orm;

import org.geekbang.projects.orm.matedata.MethodStatementMetadata;

import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;

/**
* 回话工厂  
* @author : lsq
*/
public class SessionFactory {



	public static Session getSession(MethodStatementMetadata methodStatementMetadata  , Connection connection) throws SQLException {
		return new PreparedStatementSession(connection , methodStatementMetadata);
	}

}
